]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
mixer-control: Don't emit output-update on default-sink set
authorGuido Günther <agx@sigxcpu.org>
Sun, 4 Jan 2026 12:39:05 +0000 (13:39 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 28 Jan 2026 13:25:18 +0000 (13:25 +0000)
Don't emit the signal when setting. It will be emitted when the sink
actually changes. This makes things consistent with switching the
default source.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31
Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34
Bug-Debian: https://bugs.debian.org/1126514
Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4

Gbp-Pq: Topic libgvc
Gbp-Pq: Name mixer-control-Don-t-emit-output-update-on-default-sink-se.patch

subprojects/gvc/gvc-mixer-control.c

index 7cdb9092ec3430f8364cf67c69e33cc1ab096bc3..e5b6ca96965b42a8bf13ca24d57de8225c6baf06 100644 (file)
@@ -617,14 +617,7 @@ gvc_mixer_control_change_output (GvcMixerControl *control,
 
         if (!gvc_mixer_ui_device_has_ports (output)) {
                 g_debug ("Did we try to move to a software/bluetooth sink ?");
-                if (gvc_mixer_control_set_default_sink (control, stream)) {
-                        /* sink change was successful,  update the UI.*/
-                        g_signal_emit (G_OBJECT (control),
-                                       signals[ACTIVE_OUTPUT_UPDATE],
-                                       0,
-                                       gvc_mixer_ui_device_get_id (output));
-                }
-                else {
+                if (!gvc_mixer_control_set_default_sink (control, stream)) {
                         g_warning ("Failed to set default sink with stream from output %s",
                                    gvc_mixer_ui_device_get_description (output));
                 }